package com.itheima.service.mongo;

import com.itheima.domain.mongo.Comment;
import com.itheima.vo.PageBeanVo;
import org.bson.types.ObjectId;

public interface CommentService {
    int save(Comment comment);
    int delete(Long userId, ObjectId publishId,Integer commentType);
    //评论列表
    PageBeanVo findCommentByPage(ObjectId movementId,Integer pageNum,Integer pageSize);
    //视频评论列表
    PageBeanVo findCommentByPage2(ObjectId movementId,Integer pageNum,Integer pageSize);
    //点赞喜欢评论列表
    PageBeanVo findByPage(Long publishUserId,Integer commentType,Integer pageNum,Integer pageSize);

    Comment findCommentById(ObjectId publishId);

}
